const routes = [
  {
    path: '/',
    redirect: '/login',
    component: () => import('/@/layout/basic/index.vue'),
    children: [
      {
        path: 'home',
        component: () => import('/@/views/home/index.vue'),
        meta: {
          title: '首页',
          keepAlive: true,
        },
      },
      {
        path: 'grade',
        component: () => import('/@/views/grade/index.vue'),
        meta: {
          title: '测试成绩',
          keepAlive: true,
        },
      },
      {
        name: 'announce',
        path: '/announce',
        component: () => import('/@/views/announce/index.vue'),
        meta: {
          title: '通知',
          keepAlive: true,
        },
      },
      {
        path: 'personal',
        component: () => import('/@/views/personal/index.vue'),
        meta: {
          title: '个人中心',
          keepAlive: true,
        },
      },
      {
        // name: 'grade_teach',
        path: '/grade_teach',
        component: () => import('/@/views/grade_teach/index.vue'),
        meta: {
          title: '',
          keepAlive: true,
        },
      },
      {
        // name: 'test',
        path: '/test',
        component: () => import('/@/views/test/index.vue'),
        meta: {
          title: '',
          keepAlive: true,
        },
      },
    ],
  },
  {
    name: 'login',
    path: '/login',
    component: () => import('/@/views/login/index.vue'),
    meta: {
      title: '',
      keepAlive: true,
    },
  },
  // {
  //   name: 'grade_teach',
  //   path: '/grade_teach',
  //   component: () => import('/@/views/grade_teach/index.vue'),
  //   meta: {
  //     title: '',
  //     keepAlive: true,
  //   },
  // },
  // {
  //   name: 'test',
  //   path: '/test',
  //   component: () => import('/@/views/test/index.vue'),
  //   meta: {
  //     title: '',
  //     keepAlive: true,
  //   },
  // },
];

export default routes;
